package com.noreply.springannotation.config;

import com.noreply.springannotation.bean.Car;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author noreply
 * @description
 */
@Configuration
public class CarConfig {
    @Bean(initMethod = "init", destroyMethod = "destroy",name = "111", value = {"222","333"})
    public Car car() {
        System.out.println("new car");
        return new Car();
    }
}
